#!/usr/bin/python
import os
import sys

bench_name = sys.argv[1]

def gen_cmd(bench):
    ret = ('du -h %s/%s.linked.rbc;'
           'du -h %s/%s.linked.abc.rbc;'
           'du -h %s/%s.linked.gvn.rbc;'
           'du -h %s/%s.linked.abcd.rbc;'
           'du -h %s/%s.llvm.bc;'
           'du -h %s/%s.llvm.abc.bc;'
           'du -h %s/%s.llvm.gvn.bc;'
           'du -h %s/%s.llvm.abcd.bc;'
           %(bench, bench, bench, bench,
             bench, bench, bench, bench,
             bench, bench, bench, bench,
             bench, bench, bench, bench)
          )
    return ret


sys.stdout.flush()
os.system(gen_cmd(bench_name))
